-
Notifications
You must be signed in to change notification settings - Fork 109
Feat/allow enable disable sodium #702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/allow enable disable sodium #702
Conversation
boorad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
packages/react-native-quick-crypto/cpp/cipher/XSalsa20Cipher.hpp
Outdated
Show resolved
Hide resolved
|
technically, if we disable sodium and run the example tests, they should fail, correct? |
|
Looks like the env |
|
@renanmav Yes, the tests should fail and say one needs to enable sodium. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a small update on 5d5b156, that env is already overriden in the Podfile
react-native-quick-crypto/example/ios/Podfile
Lines 1 to 2 in 5d5b156
| ENV['RCT_NEW_ARCH_ENABLED'] = '1' | |
| ENV['SODIUM_ENABLED'] = '1' |

Adds the option to enable/disable libsodium. Disabled by default. The reason is to avoid unnecessary size added to the library when one doesn't use the functionality that requires libsodium.
Android (gradle.properties):
iOS (Podfile)